package com.ruoyi.base.service;

import com.ruoyi.base.domain.BaseBsProject;
import com.ruoyi.base.domain.UserPower;
import com.ruoyi.base.domain.bo.BaseBsFbfxBo;
import com.ruoyi.base.domain.vo.BaseBsBdVo;
import com.ruoyi.base.domain.bo.BaseBsBdBo;
import com.ruoyi.base.domain.vo.BdTreeVo;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 标段Service接口
 *
 * @author zxs
 * @date 2024-09-25
 */
public interface IBaseBsBdService {

    /**
     * 查询标段
     */
    BaseBsBdVo queryById(Long id);

    /**
     * 查询标段列表
     */
    TableDataInfo<BaseBsBdVo> queryPageList(BaseBsBdBo bo, PageQuery pageQuery);

    /**
     * 查询标段列表
     */
    List<BaseBsBdVo> queryList(BaseBsBdBo bo);

    /**
     * 新增标段
     */
    Boolean insertByBo(BaseBsBdBo bo);

    /**
     * 修改标段
     */
    Boolean updateByBo(BaseBsBdBo bo);

    /**
     * 校验并批量删除标段信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<BaseBsProject> projectList();

    UserPower getPower();

    R<List<BaseBsBdVo>> getList(BaseBsBdBo bo);

    R<List<BdTreeVo>> bdTreeList(BaseBsBdBo bo);

    R<List<BdTreeVo>> projectTreeList();

    R<List<BdTreeVo>> bdQsTreeList(BaseBsBdBo bo);

    List<BdTreeVo> fbfxTreelist(BaseBsBdBo bo);

    BaseBsBdVo getInfoById(Long id);

    R<List<BdTreeVo>> supplierTreeList(BaseBsBdBo bo);

    List<BdTreeVo> getZdFbfxTreelist(BaseBsBdBo bo);
}
